package com.woniu.user.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author hushunlai
 * @since 2023-05-22
 */
@Getter
@Setter
@TableName("t_user")
@ApiModel(value = "User对象", description = "用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("手机号码")
    private String mobile;

    @ApiModelProperty("登录密码")
    private String password;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("昵称")
    private String name;

    @ApiModelProperty("性别")
    private Byte gender;

    @ApiModelProperty("用户类型")
    private Byte userType;

    @ApiModelProperty("vip类型")
    private Byte vip;

    @ApiModelProperty("逻辑删除")
    @TableLogic
    private String isDeleted;

    @ApiModelProperty("第三方登录")
    private String openid;

    @ApiModelProperty("评论状态")
    private Byte commentStatus;

    @ApiModelProperty("比特币")
    private BigDecimal bitcoin;

    @ApiModelProperty("商家ID")
    private Integer storeId;

    @ApiModelProperty("注册时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
}
